//#define OPALE
/*
#ifdef OPALE

#define INI_SEC_MASK_DEBUG	"TRACE"
#define INI_KEY_MASK_DEBUG	"mask.debug"

#define INI_SEC_MASK_LOG	"TRACE"
#define INI_KEY_MASK_LOG	"TRACE"

#define INI_SEC_MASK_SHOW	"DATABASE"
#define INI_KEY_MASK_SHOW	"DEBUG"

#else

#define INI_SEC_MASK_DEBUG	"options"
#define INI_KEY_MASK_DEBUG	"mask.debug"

#define INI_SEC_MASK_LOG	"options"
#define INI_KEY_MASK_LOG	"mask.log"

#define INI_SEC_MASK_SHOW	"options"
#define INI_KEY_MASK_SHOW	"show.debug"

#endif
*/
#include <tchar.h>

#ifndef NUMTCHARS
#define NUMTCHARS(x)	sizeof(x)/sizeof(TCHAR)
#endif

BOOL ini_getShowTraceLog();
long ini_getBasicMaskSet();
//BOOL ini_getShowDebugSql();
//BOOL ini_setShowDebugSql(BOOL b);



//initialize work with settings
BOOL ini_init();

//finalize work with settings
BOOL ini_finit();

//returns reference to value
//buffer should be large enough to store the value otherwise it will be trancated
//default can not be NULL!
_TCHAR* ini_getstr(_TCHAR*section,_TCHAR*key,_TCHAR*def,_TCHAR*val,int vallen);

BOOL	ini_setstr(_TCHAR*section,_TCHAR*key,_TCHAR*val);

int		ini_getint(_TCHAR*section,_TCHAR*key,int def);

BOOL	ini_setint(_TCHAR*section,_TCHAR*key,int val);

BOOL ini_savewinpos(_TCHAR*section,HWND hwnd);

BOOL ini_loadwinpos(_TCHAR*section,HWND hwnd);
